<?php
namespace Common\Model;
use Think\Model;
class StyleModel extends Model{
	protected $tableName = 'style';
	protected $patchValidate=true;
	protected $_auto=array(
				array('time','autoTime',1,'function'),
	);
	protected $_validate=array(
			array('stylename','/^\S+$/','分类名称不能为空'),//验证分类名不能为空
			array('crowd','/^\S+$/','所属人群名不能为空'),
			array('content','/^\S+$/','描述内容不能为空'),
			array('status','/0|1$/','描述内容不能为空'),
	);

}